C. So that different types of contracts would have different types
of predefined specifications
D. All of the above
Q101: An interface can’t declare which of the following?
A. Events
B. Functions
C. Constants
D. Structs
Q102: How does Solidity adhere to the encapsulation of a
fundamental feature of the object-oriented programming?
A. By not disclosing any information of smart contract
B. By making state variables private by default
C. By advising to use public functions to access the private state
variables
D. Both B and C
Q103: Why do we need to write Events in a Solidity contract?
A. To integrate with the front-end code
B. To integrate with the other contracts
C. Both A and B
D. None of these
Q104: Which of the following would not lead to the consumption of
gas?
A. Deploying a contract on the Ethereum network
B. Invoking a function marked with view or pure
C. Invoking a function calling another function marked with view
or pure
D. All of the above would lead to the consumption of gas
Q105: You have to write a smart contract to sell random items in an
auction. Which ERC interface would you implement?